<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加组件</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
    <div id="app" v-cloak class="minWidth">
        <yl-page-header content="新增组件"></yl-page-header>
        <el-form :model="form" :rules="rules" ref="contract" inline-message="true" style="width: 100%">
            <div class="table_titel">
                <div class="titel">新增组件</div>
            </div>
            <el-descriptions :column="2" border size="small">
                <el-descriptions-item label="组件名称">
                    <el-form-item prop="Components_Name">
                        <el-input v-model.trim="form.Components_Name" placeholder="请输入组件名称"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="组件标识">
                    <el-form-item prop="Components_Sign">
                        <el-input v-model.trim="form.Components_Sign" placeholder="请输入组件标识"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="上传组件">
                    <el-form-item prop="File_Name">
                        <el-upload ref="upload" class="upload-demo" accept=".js" :limit="limit" multiple drag
                            action="" :on-exceed="handleExceed" :file-list="fileList" :on-change="handleChange"
                            :auto-upload="false">
                            <i class="el-icon-upload"></i>
                            <div class="el-upload__text">
                                将组件文件拖到此处，或<em>点击上传</em><br>
                                <span style="font-size: 10px;color: #c7c5c5;">只能支持.js文件</span>
                            </div>
                        </el-upload>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <el-form-item class="form-operation">
                <el-button @click="window.history.back()">返回</el-button>
                <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../config/config.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="js/add.js"></script>
</body>

</html>